package com.wang.provider.controller;

import com.wang.provider.mapper.ProviderMapper;
import com.wang.provider.model.Provider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: wangning
 * @date: 2023/12/25 11:47
 */
@RestController
public class ProviderController {

    @Autowired
    private ProviderMapper providerMapper;

    @GetMapping("/provider/{id}")
    public Provider provider(@PathVariable("id") Integer id){
        return providerMapper.selectById(id);
    }

}
